<?php

/**
 * Framework_Auth_User
 *
 * If your module class requires that a user be logged in in order to access
 * it then extend it from this Auth class. 
 *
 * @author Application Support Group
 * @copyright University of Georgia
 * @package BAMF
 * @filesource
*/

abstract class Framework_Auth_User extends Framework_Module {

	public function __construct() {
		parent::__construct();
	}

	public function authenticated( $authUserField ) {

		$_output = false ;
		$idField = $this->session->idField ;
		
		if( !empty( $idField )) {
			$idValue = $this->session->idValue ;
			
			if( $idField == $authUserField ) {
				if( $idValue ) {
					$_output = true ;
				}
			}
		}

		return $_output ;
	}

	public function __destruct() {
		parent::__destruct();
	}
}

?>
